package org.example.Server;


import org.example.Exception.StudentNoExistException;
import org.example.Pojo.Emp;
import org.example.Pojo.LoginInfo;
import org.example.Pojo.PageResult;
import org.springframework.transaction.annotation.Transactional;

import java.time.LocalDate;
import java.util.List;

public interface EmpServer {

    public PageResult getPage(Integer page, Integer pageSize, LocalDate begin, LocalDate end, String name, Integer gander);

    public void add(Emp emp);

    public void delete(List<Integer> id);

    public Emp getByID(Integer id);

    public  void update(Emp emp);

    public void updateId(Emp emp);

    List<Emp> getAllEmp();

    LoginInfo selectByUserNameAndPassword(Emp emp) throws StudentNoExistException;
}
